package cn.e4j.modular.crm.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.e4j.core.typewrap.PO;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * <p>
 * 
 * </p>
 *
 * @author yuan_rz
 * @since 2019-01-28
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("GWDC_T")
public class Gwdc004Export extends PO<Gwdc004Export> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "GWDCENT", type = IdType.INPUT)
    private String GWDCENT;

    @Excel(name = "活动编号")
    private String GWDC001;

    @Excel(name = "是否审核",replace = {"是_Y","否_N"})
    private String GWDCACTI;

    @Excel(name = "活动说明")
    private String GWDC003;

    @Excel(name = "申请日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate GWDC008;

    @Excel(name = "申请人员")
    private String GWDC011_NAME;

    @Excel(name = "审核人")
    private String GWDC013_NAME;

    @Excel(name = "生效日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate GWDC009;

    @Excel(name = "促销方式",replace = {"裸价_1","特价_2","满额赠送_3","满量赠送_4"})
    private String GWDC005;

    @Excel(name = "对象类型",replace = {"渠道_1","渠道商_2"})
    private String GWDC007;

    @Excel(name = "申请部门")
    private String GWDC012_NAME;

    @Excel(name = "审核时间")
    private String GWDC014;

    @Excel(name = "截止日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate GWDC010;

    @Excel(name = "结算方式",replace = {"不限定_1","现款结算_2","账期结算_3"})
    private String GWDC006;

    @Excel(name = "折扣率")
    private BigDecimal GWDC027;

    @Excel(name = "起订数量")
    private BigDecimal GWDC020;

    @Excel(name = "起订金额")
    private BigDecimal GWDC021;

    @Excel(name = "最大赠品金额")
    private BigDecimal GWDC025;

    @Excel(name = "最大赠品数量")
    private BigDecimal GWDC026;

    @Excel(name = "备注")
    private String GWDC015;

    private String GWDC004;

    private String GWDC002;

    private String GWDC011;

    private String GWDC012;

    private String GWDC013;

    private String GWDC016;

    private String GWDC017;

    private String GWDC018;

    private String GWDC019;

    private String GWDC022;

    private BigDecimal GWDC023;

    private BigDecimal GWDC024;

    private String GWDC028;

    private String GWDC029;

    private String GWDC030;

    private String GWDC031;

    private String GWDC032;

    @Override
    protected Serializable pkVal() {
        return this.GWDCENT;
    }

}
